const express = require("express");
const app = require("./middlewares"); // 中间件
const router = require("./router/router");
app.use("/api", router);
app.use("/uploads", express.static("uploads")); // http://127.0.0.1:3002/uploads/....

app.listen(3002, "0.0.0.0", (req, res) => {
  console.log("启动成功: http://localhost:3002");
});
